<%@page import="java.sql.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="cn.school.dao.*,cn.school.service.*,cn.school.entity.*" %>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
Service4 service=new Service4();
Student stu=new Student();
stu.setStuno(207L);
stu.setSname("李王晓");
stu.setSex("男");
stu.setTelephone("13625635454");
stu.setQq("165268526");
stu.setWechat("9852652");
stu.setGradeid(3L);
stu.setEnterdate(new Date(1997-10-11));
stu.setFromcity("合肥");
stu.setBirthday(new Date(1997-10-11));
stu.setAddress("庐阳区");
stu.setPass("1529653");
int i=service.add(stu);
out.print("增加了"+i+"行");
%>
</body>
</html>